package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.InventoryManagement.AgentiaBean;
import com.project.bean.InventoryManagement.MoveBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IMoveMapper extends BaseMapper<MoveBean> {

    MoveBean findMoveById(int moveId);

    MoveBean findMoveMsg(String moveClass);


//------------------------------------------------------

    //向出库内容添加物品 领取物品数量默认为1
    void addAgentia(@Param("moveId") int moveId,@Param("agentiaId") int agentiaId,@Param("detailsNum") int detailsNum);

    //根据出库信息id和物品id移除物品
    void delAgentia(@Param("moveId") int moveId,@Param("agentiaId") int agentiaId);


    //根据出库信息id修改物品数量
    void  updateNum(@Param("moveId")int moveId, @Param("agentiaId") int agentiaId,@Param("newNum") int newNum);


//    void addMove(@Param("moveId")int moveId,@Param("list") List<AgentiaBean> list);

}
